View Javadoc
1 2 // This class is generated by XDoclet SDK (XGG). Do not edit! 3 package xdoclet.sdk.xtag.migrator; 4 5 /*** 6 * <p>XML element: <b><option-set/></b></p>. 7 * This element exists in the following versions: 8 * <ul> 9 * <li>xtags_1_1.dtd</li> 10 * </ul> 11 * 12 * @bean.class name="option-set" 13 * 14 * @author <a href="http://xdoclet.sf.net/">XDoclet</a> 15 */ 16 public final class OptionSet extends xdoclet.sdk.xgg.XGGPojo { 17 /*** 18 * Default constructor. Should not be called explicitly. It's available 19 * only to be able to convert xml into beans with Betwixt. 20 */ 21 public OptionSet() { 22 } 23 24 /*** 25 * Constructor. Should only be called if the current version is of the following: 26 * <ul> 27 * <li>xtags_1_1.dtd</li> 28 * </ul> 29 * @param parent the parent element 30 * @throws java.lang.IllegalStateException if this constructor is illegal 31 * with the current version. 32 */ 33 public OptionSet( OptionSets parent ) throws java.lang.IllegalStateException { 34 // Check that it's ok to call this constructor. 35 checkVersion( new String[] { "xtags_1_1.dtd" } ); 36 parent.addOptionSet( this ); 37 } 38 39 /*** 40 * <p>XML element: <a href="Xmldefault.html"><default/></a></p> 41 * This element exists in the following versions: 42 * <ul> 43 * <li>xtags_1_1.dtd</li> 44 * </ul> 45 * 46 * The cardinality is (0..1) 47 * 48 * @param xmldefault the Xmldefault to add. 49 * @throws java.lang.IllegalStateException if this method is illegal 50 * with the current version. 51 */ 52 public final void setXmldefault( final Xmldefault xmldefault ) throws java.lang.IllegalStateException { 53 // Check that it's ok to call this method. 54 checkVersion( new String[] { "xtags_1_1.dtd" } ); 55 56 // Check that it's not already set. 57 if( _xmldefault != null ) { 58 throw new IllegalStateException("setXmldefault(Xmldefault) has already been called with " + 59 _xmldefault + ". Attempt to call it again with " + xmldefault 60 ); 61 } 62 _xmldefault = xmldefault; 63 } 64 65 /*** 66 * @bean.property 67 * @bean.attribute name="betwixt.index" value="0" 68 * @bean.attribute name="betwixt.name" value="default" 69 */ 70 public final Xmldefault getXmldefault() { 71 return _xmldefault; 72 } 73 74 private Xmldefault _xmldefault; 75 76 /*** 77 * <p>XML element: <a href="Options.html"><options/></a></p> 78 * This element exists in the following versions: 79 * <ul> 80 * <li>xtags_1_1.dtd</li> 81 * </ul> 82 * 83 * The cardinality is (1..1) 84 * 85 * @param options the Options to add. 86 * @throws java.lang.IllegalStateException if this method is illegal 87 * with the current version. 88 */ 89 public final void setOptions( final Options options ) throws java.lang.IllegalStateException { 90 // Check that it's ok to call this method. 91 checkVersion( new String[] { "xtags_1_1.dtd" } ); 92 93 // Check that it's not already set. 94 if( _options != null ) { 95 throw new IllegalStateException("setOptions(Options) has already been called with " + 96 _options + ". Attempt to call it again with " + options 97 ); 98 } 99 _options = options; 100 } 101 102 /*** 103 * @bean.property 104 * @bean.attribute name="betwixt.index" value="1" 105 * @bean.attribute name="betwixt.name" value="options" 106 */ 107 public final Options getOptions() { 108 return _options; 109 } 110 111 private Options _options; 112 113 /*** 114 * <p>XML element: <a href="Condition.html"><condition/></a></p> 115 * This element exists in the following versions: 116 * <ul> 117 * <li>xtags_1_1.dtd</li> 118 * </ul> 119 * 120 * The cardinality is (0..1) 121 * 122 * @param condition the Condition to add. 123 * @throws java.lang.IllegalStateException if this method is illegal 124 * with the current version. 125 */ 126 public final void setCondition( final Condition condition ) throws java.lang.IllegalStateException { 127 // Check that it's ok to call this method. 128 checkVersion( new String[] { "xtags_1_1.dtd" } ); 129 130 // Check that it's not already set. 131 if( _condition != null ) { 132 throw new IllegalStateException("setCondition(Condition) has already been called with " + 133 _condition + ". Attempt to call it again with " + condition 134 ); 135 } 136 _condition = condition; 137 } 138 139 /*** 140 * @bean.property 141 * @bean.attribute name="betwixt.index" value="2" 142 * @bean.attribute name="betwixt.name" value="condition" 143 */ 144 public final Condition getCondition() { 145 return _condition; 146 } 147 148 private Condition _condition; 149 150 }

This page was automatically generated by Maven